package com.lwj.designpattern.create.factory;

import com.lwj.designpattern.create.factory.entity.BlackCar;
import com.lwj.designpattern.create.factory.entity.Car;

/**
 * @author wujilee
 * @date 2022/11/15
 */
public class YellowCarFactory extends  CarFactory{
    @Override
    public Car createCar() {
        System.out.println("工厂方法正在生产黄色汽车");
        return  new BlackCar();
    }
}
